import router from 'vue-router'
import index from '../pages/index.vue'
import Deng from '../pages/Deng/index.vue'
import Zhu from '../pages/Zhu/index.vue'
const routers = new router({
  mode: 'history',
  routes: [
    {
      path: '/',
      component: index
    },
    {
      path: '/Deng',
      component: Deng
    },
    {
      path: '/Zhu',
      component: Zhu
    }
  ]
})
routers.beforeEach((to,from,next)=>{
  console.log(to,from)
  console.log('路由切换')
  next()
})
export default ()=>{return routers};